<html>
	<head>
		<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
		<script>
			$(function() {
			jQuery.support.cors = true;
			var webServiceURL = 'http://localhost:8080/MonitorYourMoneyServer/services/DMLFunction/getTransactionHistory?';
			
			alert('dsdas');
			var th = $('#tabel').find('th');
			
				$.ajax({
					type: 'GET',
					dataType: 'json',
					url: webServiceURL,
					data: 'userId=javlin',
					success: function(data) {
						$('#lala').html("dsdasdasds"+data);
					},
					/*$(xml).find('car').each(function(){
						var Amount = $(this).find('Amount').text();
						var transactionReason = $(this).find('transactionReason').text();
						table.eq(0).append("<th><td>"+Amount+"</td><td>"+transactionReason+"</td></th>");
						$('#lala').html("<th><td>"+Amount+"</td><td>"+transactionReason+"</td></th>")
					});*/
					//other code
					error: function() {
						$('#lala').html("The XML File could not be processed correctly.");
					}
				});
			});
		</script>
	</head>
	<body>
		<table id="tabel">
			<th>
				<td>amount</td>
				<td>Reason</td>
			</th>
		</table>
		<div id="lala"></div>
	</body>
</html>